package com.ruoyi.classes.service;

import java.util.List;
import com.ruoyi.classes.domain.ClassStudentRelationship;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.student.domain.StuInfo;

/**
 * 学生班级Service接口
 *
 * @author ruoyi
 * @date 2025-04-10
 */
public interface IClassStudentRelationshipService
{
    /**
     * 查询学生班级
     *
     * @param relationshipId 学生班级主键
     * @return 学生班级
     */
    public ClassStudentRelationship selectClassStudentRelationshipByRelationshipId(Long relationshipId);

    /**
     * 查询学生班级列表
     *
     * @param classStudentRelationship 学生班级
     * @return 学生班级集合
     */
    public List<ClassStudentRelationship> selectClassStudentRelationshipList(ClassStudentRelationship classStudentRelationship);

    /**
     * 新增学生班级
     *
     * @param classStudentRelationship 学生班级
     * @return 结果
     */
    public int insertClassStudentRelationship(ClassStudentRelationship classStudentRelationship);

    /**
     * 修改学生班级
     *
     * @param classStudentRelationship 学生班级
     * @return 结果
     */
    public int updateClassStudentRelationship(ClassStudentRelationship classStudentRelationship);

    /**
     * 批量删除学生班级
     *
     * @param relationshipIds 需要删除的学生班级主键集合
     * @return 结果
     */
    public int deleteClassStudentRelationshipByRelationshipIds(Long[] relationshipIds);

    /**
     * 删除学生班级信息
     *
     * @param relationshipId 学生班级主键
     * @return 结果
     */
    public int deleteClassStudentRelationshipByRelationshipId(Long relationshipId);

    AjaxResult insertClassStudentRelationshipList(List<ClassStudentRelationship> classStudentRelationship);

    List<StuInfo> getStuList(Long classId);

    AjaxResult deleteByStuIdAndClassId(List<ClassStudentRelationship> relationships);
}
